<!---insert into categories--->   
<cfquery name="qremovefirst" datasource="#request.dsn#">
DELETE FROM blog_categories_map
WHERE b_id = <cfqueryparam value="#b_id#" cfsqltype="cf_sql_integer">
</cfquery>

<cfloop list="#form.cid#" delimiters="," index="this_cid">
    <cfquery name="qinsertcat" datasource="#request.dsn#">
	INSERT INTO blog_categories_map
	(b_id, cid)
	VALUES
	(#b_id#, #this_cid#)
	</cfquery>   
</cfloop>